﻿<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\web\View;
use backend\models\service\AdminService as Admin;
use backend\models\service\Chapter;
use yii\helpers\Url;
use backend\widgets\GridView;
use backend\models\service\CateService as Cate;
?>

<div>
    <article class="center">
        <div class="TopUl_Atable_nv">
           <?=
            GridView::widget([
                'dataProvider' => $dataProvider1,
                'columns' => [
                     [
                            'class' => 'yii\grid\CheckboxColumn',
                            'headerOptions' => ['width' => 3],
                            'checkboxOptions' => function($model, $key, $index, $column) {
                                if (isset($_COOKIE['id'])) return ['checked'=>in_array($model->id, $_COOKIE['id']) ? 'checked' : ''];
                            }
                        ],
                        [
                            'attribute' => 'cate_name',
                            'format' => 'raw',
                            'contentOptions' => ['class' => 'TR_Tows'],
                            'label' => '女频',
                            'headerOptions' => ['width' => 20],
                           
                        ],
                    ]
                ]);
            ?>
        </div>
        <div class="TopUl_Atable_nan">
            <?=
            GridView::widget([
                'dataProvider' => $dataProvider2,
                'columns' => [
                     [
                            'class' => 'yii\grid\CheckboxColumn',
                            'headerOptions' => ['width' => 3],
                            'checkboxOptions' => function($model, $key, $index, $column) {
                                if (isset($_COOKIE['id'])) return ['checked'=>in_array($model->id, $_COOKIE['id']) ? 'checked' : ''];
                            }
                        ],
                        [
                            'attribute' => 'cate_name',
                            'format' => 'raw',
                            'contentOptions' => ['class' => 'TR_Tows'],
                            'label' => '男频',
                            'headerOptions' => ['width' => 20],
                           
                        ],
                    ]
                ]);
            ?>
        </div>
    </article>
    <p class="lassLI" style="width:auto;">
        <?= Html::submitButton('保存创建', ['class'=>'btn btn-primary','name' =>'submit-button']) ?>
    </p>
</div>
    